
// 自动生成模板Category
package classey
import (
)

// category表 结构体  Category
type Category struct {
  CategoryId  *int32 `json:"categoryId" form:"categoryId" gorm:"primarykey;column:category_id;"`  //分类id
  CategoryName  *string `json:"categoryName" form:"categoryName" gorm:"column:category_name;size:255;" binding:"required"`  //分类值
  ParentId  *int32 `json:"parentId" form:"parentId" gorm:"column:parent_id;"`  //父级id
  Sort  *string `json:"sort" form:"sort" gorm:"column:sort;size:255;"`  //排序
}


// TableName category表 Category自定义表名 category
func (Category) TableName() string {
    return "category"
}





